package com.oa.system.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 用户DTO--添加
 */
@Data
public class UserAddDTO {

    @ApiModelProperty(value = "用户名")
    @NotNull(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotNull(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "部门id")
    @NotNull(message = "部门id不能为空")
    private String departmentId;

    @ApiModelProperty(value = "岗位id")
    @NotNull(message = "岗位id不能为空")
    private String postId;

    @ApiModelProperty(value = "职务")
    @NotNull(message = "职务不能为空")
    private String duty;

    @ApiModelProperty(value = "指纹编号")
    private String fingerprintNumber;

    @ApiModelProperty(value = "用户姓名")
    @NotNull(message = "用户姓名不能为空")
    private String name;

    @ApiModelProperty(value = "手机号")
    @NotNull(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    @NotNull(message = "邮箱不能为空")
    private String email;

    @ApiModelProperty(value = "授权状态(1-启用  2-禁用)")
    @NotNull(message = "授权状态不能为空")
    private Integer authorizationStatus;

    @ApiModelProperty(value = "工号")
    private String jobNo;

}
